package com.mervin.patterns.bridge;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-21 00:32
 * @Description: 手机抽象类（Abstraction）
 ***************************************/
public abstract class Phone {

    private Brand brand;

    public Phone(Brand brand) {
        this.brand = brand;
    }

    protected void open(){
        this.brand.open();
    }

    protected void close(){
        this.brand.close();
    }

    protected void call(){
        this.brand.call();
    }
}
